import request from '@/utils/request'

export default ({
  // 获取用户道具列表
  getAllPropList(current, limit, data) {
    return request({
      url: `/serviceucenter/props/getAllPropsBypage/${current}/${limit}`,
      method: 'post',
      data
    })
  },
  // 根据id获取信息  http://192.168.31.228:9100/
  getPropsById(id) {
    return request({
      url: `/serviceucenter/props/getPropsById/${id}`,
      method: 'get'
    })
  },

  // 修改道具 /serviceucenter/props/updateProps
  updateProps(data) {
    return request({
      url: `/serviceucenter/props/updateProps`,
      method: 'post',
      data
    })
  },
  // 添加道具
  addProps(data) {
    return request({
      url: `/serviceucenter/props/addProps`,
      method: 'post',
      data
    })
  },
  // 删除道具 /serviceucenter/props/deleteProps
  deleteProps(propsId) {
    return request({
      url: `/serviceucenter/props/deleteProps/${propsId}`,
      method: 'delete'
    })
  }
})
